package model;

public class ConnectionProperty {
	
	private String id = "";
	private String jobName = "";
	private String idConnection = "";
	
	private String driver = "";
	private String url = "";
	private String user = "";
	private String password = "";
	private String schema = "";

	public ConnectionProperty(final String jobName, final String idConnection, final String driver,
			final String url, final String user, final String password, final String schema) {
		this.id = ConnectionProperty.composeId(jobName, idConnection);
		this.jobName = jobName;
		this.idConnection = idConnection;
		this.driver = driver;
		this.url = url;
		this.user = user;
		this.password = password;
		this.schema = schema;
	}

	public String getId() {
		return id;
	}

	public String getJobName() {
		return jobName;
	}

	public String getIdConnection() {
		return idConnection;
	}

	public String getDriver() {
		return driver;
	}

	public String getUrl() {
		return url;
	}

	public String getUser() {
		return user;
	}

	public String getPassword() {
		return password;
	}
	
	public String getSchema() {
		return schema;
	}

	public static String composeId(final String jobName, final String idConnection) {
		return jobName+"-"+idConnection;
	}

}
